package model.happy;

import java.sql.SQLException;

import model.admin.OptionalServiceVO;
import model.album.HappyalbumVO;
import model.member.MemberVO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class UploadFileDao {
	private SqlMapClient sqlMapClient;
	public UploadFileDao(SqlMapClient sqlMapClient){
		this.sqlMapClient=sqlMapClient;
	}
	public void insertHappyTime(UploadFileVO uvo) throws SQLException {
		sqlMapClient.insert("happy.insertHappyTime",uvo);
	}

	public OptionalServiceVO getOptimalService(MemberVO mvo) throws SQLException {
		// TODO Auto-generated method stub
		return (OptionalServiceVO) sqlMapClient.queryForObject("optionalService.requestChecked",mvo);
	}
//////////////////////////////////////////////////////////////////////////
	public void insertalbum(HappyalbumVO hvo) throws SQLException {
		sqlMapClient.insert("happyalbum.insertalbum",hvo);
	}
}
